[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getdisk()               Get Current Drive

 #include   <dir.h>

 int        getdisk(void);

    getdisk() gets the current drive.

       Returns:     The current drive: 0 = A, 1 = B, 2 = C, and so on.

         Notes:     This is equivalent to MS-DOS function 0x19.

   Portability:     MS-DOS only.


See Also: getcurdir() setdisk()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson